package com.ncu.cloundeoffice.service;

import com.github.pagehelper.PageInfo;
import com.ncu.cloundeoffice.pojo.ResponseResult;
import com.ncu.cloundeoffice.pojo.TEmployee;

import java.util.Date;
import java.util.List;

public interface TEmployeeService {
    /**
     * 查询所有的人员
     * @param currentPage
     * @param pageSize
     * @param tEmployee
     * @param beginContractScope
     * @return
     */
    PageInfo<TEmployee> getAllEmployee(int currentPage, int pageSize, TEmployee tEmployee, Date[] beginDateScope);

    /**
     * 获取工号
     * @return
     */
    ResponseResult getMaxWorkId();

    /**
     * 添加员工
     * @param tEmployee
     * @return
     */
    ResponseResult addEmployee(TEmployee tEmployee);

    /**
     * 更新员工
     * @param tEmployee
     * @return
     */
    ResponseResult updateEmployee(TEmployee tEmployee);

    /**
     * 删除员工
     * @param id
     * @return
     */
    ResponseResult deleteEmployee(int id);

    /**
     * 查询员工 或者通过id查询
     * @param id
     * @return
     */
    List<TEmployee> getEmployeeById(Integer id);

    /**
     * excel表添加员工
     * @param list
     * @return
     */
    int insertTEmployee(List<TEmployee> list);

    /**
     * 获取所有员工工资账套
     * @param currentPage
     * @param pageSize
     * @return
     */
    ResponseResult getEmployeeWithSalary(int currentPage, int pageSize);

    /**
     * 更新员工工资账套
     * @param eid
     * @param sid
     * @return
     */
    ResponseResult updateEmployeeSalary(int eid, int sid);
}
